const permissionGroupList = {
  list: [
    {
      id: 1,
      permissionGroupName: '教师',
      permissionList: [
        {
          id: 1,
          value: '查看'
        }, {
          id: 2,
          value: '新增'
        }, {
          id: 3,
          value: '删除'
        }, {
          id: 4,
          value: '保存'
        },
      ],
      permissionGroupDesc: '教师权限'
    }, {
      id: 1,
      permissionGroupName: '学生权限',
      permissionList: [
        {
          id: 1,
          value: '查看'
        }, {
          id: 2,
          value: '新增'
        }, {
          id: 3,
          value: '删除'
        }, {
          id: 4,
          value: '保存'
        },
      ],
      permissionGroupDesc: '学生权限'
    }, {
      id: 1,
      permissionGroupName: '管理员',
      permissionList: [
        {
          id: 1,
          value: '查看'
        }, {
          id: 2,
          value: '新增'
        }, {
          id: 3,
          value: '删除'
        }, {
          id: 4,
          value: '保存'
        },
      ],
      permissionGroupDesc: '管理员权限'
    }, {
      id: 1,
      permissionGroupName: '学工办',
      permissionList: [
        {
          id: 1,
          value: '查看'
        }, {
          id: 2,
          value: '新增'
        }, {
          id: 3,
          value: '删除'
        }, {
          id: 4,
          value: '保存'
        },
      ],
      permissionGroupDesc: '学工办权限'
    }
  ],
  total: 4
}
module.exports = [
  // permissiongroups search 权限组查找
  {
    url: '/permissiongroups/search',
    type: 'post',
    response: _ => {
      return {code: 20000, data: permissionGroupList}
    }
  },

  // permissiongroups add 权限组新增
  {
    url: '/permissiongroups/add',
    type: 'post',
    response: _ => {
      return {code: 20000, data: 'success'}
    }
  },

  // permissiongroups delete 权限组删除
  {
    url: '/permissiongroups/delete',
    type: 'post',
    response: _ => {
      return {code: 20000, data: 'success'}
    }
  },

  // permissiongroups update 权限组更新
  {
    url: '/permissiongroups/update',
    type: 'post',
    response: _ => {
      return {code: 20000, data: 'success'}
    }
  },

  // permissiongroups get 获取所有权限组
  {
    url: '/permissiongroups/get',
    type: 'get',
    response: _ => {
      return {code: 20000, data: permissionGroupList}
    }
  },

  // permissiongroups get 获取所有权限
  {
    url: '/allpermission/get',
    type: 'get',
    response: _ => {
      return {code: 20000, data: permissionGroupList}
    }
  },
]
